package org.ww.edu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.ww.edu.bean.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import org.ww.edu.bean.frontvo.CourseWebVo;
import org.ww.edu.bean.frontvo.FrontCourseVo;
import org.ww.edu.bean.vo.CourseInfoVo;
import org.ww.edu.bean.vo.CoursePublishVo;
import org.ww.edu.bean.vo.CourseQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author ww
 * @since 2020-10-23
 */
public interface CourseService extends IService<Course> {

    String addCourseInfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVo courseInfoVo);

    CoursePublishVo getPublishCourseInfo(String courseId);

    IPage<Course> pageCourse(long page, long limit, CourseQuery courseQuery);

    void deleteCourse(String courseId);

    List<Course> getHotCourse();

    Map<String,Object> pageCourseInfo(Page<Course> coursePage, FrontCourseVo courseVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
